package com.pengxun.manager.enums;

/**
 * @author zhongzhu
 * @Title: kpd-platform
 * @Package com.pengxun.manager.enums
 * @Description:
 * @date 2019/4/2412:03
 */
public enum ProduceBatchEnum {
    NO_START(0, "未生码"),
    PRODUCEING(1, "生码中"),
    NO_DOWNLOAD(2, "生码完成未下载"),
    DOWNLOADED(3, "生码完成已下载"),;

    public static ProduceBatchEnum getEnumByType(Integer type) {
        ProduceBatchEnum[] enums = ProduceBatchEnum.values();
        for (ProduceBatchEnum produceBatchEnum : enums) {
            if (produceBatchEnum.getType() == type) {
                return produceBatchEnum;
            }
        }
        return null;
    }

    ProduceBatchEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    private Integer type;

    private String desc;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
